<template>
  <div>
    <navbar><div slot="navbar-center">分类</div></navbar>
    <type-top-tabbar @transnewDataList="transnewDataList" @transInit="transInit"></type-top-tabbar>
    <type-item :newDataList="newDataList" :init="init"></type-item>
    <tabbar></tabbar>
  </div>
</template>

<script>
import Tabbar from "../components/tabbar/tabbar";
import {list} from "../data/itemList";
import navbar from "../components/navbar/navbar";
import TypeTopTabbar from "./type/typeTopTabbar";
import TypeItem from "./type/typeItem";
export default {
  name: "type",
  components: {TypeItem, TypeTopTabbar, Tabbar,navbar},
  data(){
    return{
      newDataList:[],
      init:true
    }
  },
  methods:{
    transnewDataList(newDataList){
      this.newDataList=newDataList;
      // console.log(newDataList)
    },
    transInit(init){
      this.init=init;
      // console.log(init)
    }
  }

}
</script>

<style scoped>


.bold{
  font-weight: bold;
}
/*xia*/


</style>